﻿/// Write a program that reads a string, reverses it and prints the result at the console.
/// Example: "sample"  "elpmas".

using System;

 class zad2
{
    static void Main()
    {
        Console.WriteLine(ReverseString("sample"));        
    }

    public static string ReverseString(string s)
    {
        char[] arr = s.ToCharArray();
        Array.Reverse(arr);
        return new string(arr);
    }
}

